CC = gcc
CFLAGS = -Wall -Wextra -g -I.
OBJS = myenv.o
TARGETS = modify_env test_myenv

all: $(TARGETS)

modify_env: modify_env.c
	$(CC) $(CFLAGS) -o $@ $^

test_myenv: test_myenv.c myenv.o
	$(CC) $(CFLAGS) -o $@ $^

myenv.o: myenv.c myenv.h
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f $(TARGETS) *.o

.PHONY: all clean 